const getBlogList = (author, key) => {
  console.log('getBlogList,---- 参数 ----', author, key)
  return [
    {
      id: 1,
      title: '标题A',
      content: '内容A',
      createTime: 123456789,
      author: '张三',
    },
    {
      id: 2,
      title: '标题B',
      content: '内容B',
      createTime: 123456789,
      author: '张三',
    },
  ]
}
const getDetail = (id) => {
  console.log('getDetail', id)
  return {
    id: 1,
    title: '标题A',
    content: '内容A',
    createTime: 123456789,
    author: '张三',
  }
}
const newBlog = (blogData = {}) => {
  console.log('newBlog 31', blogData)
  return blogData
}
const updateBlog = (id, blogData = {}) => {
  console.log('updateBlog', id, blogData)
  return true
}
const delBlog = (id) => {
  console.log('delBlog', id)
  return true
}

module.exports = {
  getBlogList,
  getDetail,
  newBlog,
  updateBlog,
  delBlog,
}
